package com.dyg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dyg.model.Resource;

public interface ResourceMapper {

	public Integer insertResource(Resource resource);

	public void deleteResourceById(String resourceId);

	public Integer updateResource(Resource resource);

	public Resource findResourceById(String resourceId);

	public List<Resource> findResourceList();

	public List<Resource> listAllResource(@Param("userId")int userId);

	public List<Resource> listRoleResource(@Param("roleId")Integer id);
	

}
